package com.zhku.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhku.user.model.po.TtUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface TtUserMapper extends BaseMapper<TtUser> {

    @Select("select role_id from tt_user_role where tt_user_role.user_id = #{id};")
    String selectRelo_IdByUserId(@Param("id")String id);
}
